package org.lex.ftplist.ui.common;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JDialog;

import org.lex.ftplist.ui.FLApplication;

public class FLDialog extends JDialog {

	public FLDialog() {
		super(FLApplication.getInstance().getMainFrame());
		this.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				FLDialog.this.windowClosing(e);
			}
		});
	}

	protected void windowClosing(WindowEvent e) {
	}

	protected void moveToParentCenter() {
		this.setLocationRelativeTo(FLApplication.getInstance().getMainFrame());
	}
}
